<?php if ($error == 2):?>
   <div class="sqltrue"><img alt="" src="<?php echo substr(site_url(),0,23)?>/public/img/icons/icontrue.png"></img> &nbsp;El proceso ha terminado correctamente</div>
<?php elseif ($error == 1):?>
    <div class="sqlfalse"><img alt="" src="<?php echo substr(site_url(),0,23)?>/public/img/icons/iconfalse.png"></img> &nbsp;Ha ocurrido un error en la consulta</div>
<?php endif;?>

<div id="titulo">SMS Setup Control Interno</div>
<?php echo form_open_multipart('smsinternos/sevesetup', array('name' => 'estatus','id' => 'commentForm'));?>
<table class="tablaform" width="100%" border="0">
	<tr>
		<td><b>Script SMS CI:</b></td>
		<td><select name="firma">
			       <?php 
			         
			       	  foreach ($script as $k):
			       	        if($k->getTipoScript() == 1):
			       	          if($k->getIdScripst() == $registro->getScriptFirma()):
			       	              echo '<option style="background:#fff200" value="'.$k->getIdScripst().'" selected="selected">'.$k->getTitleScript().'</option>';
			       	            else:
			       	              echo '<option value="'.$k->getIdScripst().'">'.$k->getTitleScript().'</option>';  
			       	          endif;
                             endif;
			           endforeach;
			       ?>
			       
			   </select></td>
	</tr>
	
		<tr>
		<td><b>Script Mail CI:</b></td>
		<td><select name="email">
			       <?php 
			         
			       	  foreach ($script as $k):
			       	        if($k->getTipoScript() == 2):
			       	          if($k->getIdScripst() == $registro->getScriptEmail()):
			       	              echo '<option style="background:#fff200" value="'.$k->getIdScripst().'" selected="selected">'.$k->getTitleScript().'</option>';
			       	            else:
			       	              echo '<option value="'.$k->getIdScripst().'">'.$k->getTitleScript().'</option>';  
			       	          endif;
                             endif;
			           endforeach;
			       ?>
			       
			   </select></td>
	</tr>

	<tr>
		<td><b>Etapa Desde:</b></td>
		<td><input type="text" value="<?php echo $registro->getEtapaDesde()?>" size="3" maxlength="3" name="edesde" class="required"/></td>
	</tr>
	
	<tr>
		<td><b>Etapa Hasta:</b></td>
		<td><input type="text" value="<?php echo $registro->getEtapaHasta()?>" size="3" maxlength="3" name="ehasta" class="required"/></td>
	</tr>



	<tr>
		<td colspan="2">
		<hr />
		</td>
	</tr>
	<tr>
		<td><input type="submit" value="Editar" /></td>
		<td><a href="<?php echo site_url().'/smsinternos/smssetupci' ?>"><input
			type="button" value="Atras" align="center" /></a></td>
	</tr>
</table>
</form>